Skip to content

Decouple IBKR notification delivery sink - #34

Merged
Pigbibi merged 1 commit into
mainfrom
decouple-notification-sink
Apr 20, 2026
Merged

Decouple IBKR notification delivery sink#34
Pigbibi merged 1 commit into
mainfrom
decouple-notification-sink

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR separates rendered strategy notifications from their delivery sinks in InteractiveBrokersPlatform.

The immediate issue is that strategy cycle code and entrypoint error paths were directly pairing log output with Telegram delivery. That made notification formatting changes harder to keep consistent and left delivery details mixed into the strategy execution flow.

The fix adds a RenderedNotification envelope and NotificationPublisher in the notification layer, routes heartbeat, rebalance, paper liquidation, and error notifications through that publisher, and preserves the existing IBKR connection and trading behavior. This does not change order execution, dry-run behavior, or cash gating.

Validation

  • ruff check
  • pytest
  • sync Cloud Run env workflow test

@Pigbibi
Pigbibi marked this pull request as ready for review April 20, 2026 22:01
@Pigbibi
Pigbibi merged commit 7ca8f74 into main Apr 20, 2026
1 check passed
@Pigbibi
Pigbibi deleted the decouple-notification-sink branch April 20, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant